<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>红包列表</h2>
	</div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
	<table class="">
    <thead>
        <tr>
            <th>发送者</th>
            <th>留言</th>
            <th>个数</th>
            <th>金额</th>
            <th>类型</th>
            <th>时间</th>
            <th>操作</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="_list">
		<volist name="_list" id="v">
		<tr>
            <td>{$v.name}</td>
            <td>{$v.info}</td>
            <td>{$v.num}</td>
            <td>{$v.price}</td>
            <td><if condition='$v.type eq 1'>拼手气<else />普通</if></td>
            <td>{:date('Y-m-d H:i:s',$v['time'])}</td>
            <td><a href='{:U("redbag_detail",array("id"=>$v[id]))}'>明细</a></td>
		</tr>
		</volist>
		<else/>
		<td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
	</div>
    <div class="page">
        {$_page}
    </div>
</block>